package ecmnext.business.assets;

/***************************************************************/
/*                     SOFTWARE SECTION                        */
/***************************************************************/
/*
 * <p>Name: ECMNext</p>
 * <p>Description: Simulation of the platform of trading Software</p>
 * <p>Licence: GNU General Public License</p>
 * <p>Organisation: EC Marseille</p>
 * <p>Persons involved in the project : groupe Plateforme de Trading</p>
 * <p>Current version: 1.0</p>
 */

/***************************************************************/
/*                       IMPORT SECTION                        */
/***************************************************************/

import javax.swing.*;
import ecmnext.business.*;
import org.jdom.*;

/***************************************************************/
/*                    Stock CLASS SECTION                      */
/***************************************************************/

/**
 * <p>Title: Stock</p>
 * <p>Description : </p>
 * @author Xuewen YANG ET Antoine COUDERC
 * @version 1.0
 */

public class Stock extends Asset {

  public Stock() {
  }

  public JPanel getAssetSetupGui() {
    return new StockSetupGui(this);
  }

  public void saveToXml(Element node) {

    // nothing to do more than the standard operations for now
  }

  public void loadFromXml(Element node) {

    // nothing to do more than the standard operations for now.
  }



  static {
    try {
      System.out.println("Loading stock...");
      ecmnext.business.AssetCreator.assetFactories.put("Stock", Class.forName("ecmnext.business.assets.Stock"));
    }
    catch (ClassNotFoundException exception) {
      System.out.println("Unabled to locate the Stock class. Reason: bad class name spelling.");
      exception.printStackTrace();
    }
  }

}
